`timescale 1ns / 1ps
module pht_tb ();
  reg rst;
  reg clk;

  reg [12:0] waddr;
  reg we;
  reg taken;
  reg [12:0] raddr;
  wire [3:0] rdata;

  initial begin
    clk = 1'b0;
    rst = 1'b1;
    #2000;
    rst = 1'b0;
  end
  always #5 clk=~clk;

  initial begin
      we = 1'b1;
      waddr = 12'hfff;
      taken = 0;
      raddr = 1;
      // #2000;
      // wvalid = 1'b1;
      // rready = 1'b1;
      // pready = 1'b1;
  end
  always #10 taken = $random();

  pht pht(
    .clk(clk),
    .rst(rst),

    .waddr(waddr),
    .we(we),
    .taken(taken),

    .raddr(raddr),
    .rdata(rdata)
  );
endmodule